package com.engine4cloud.tdf.supervision.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.common.data.web.response.Params;
import com.engine4cloud.tdf.supervision.dto.create.SpUsualOutCreateDTO;
import com.engine4cloud.tdf.supervision.dto.query.SpUsualOutQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.SpUsualOutResultDTO;
import com.engine4cloud.tdf.supervision.dto.update.SpNormalPreActionUpdateDTO;
import com.engine4cloud.tdf.supervision.dto.update.SpUsualOutUpdateDTO;
import com.engine4cloud.tdf.supervision.entity.SpUsualOutEntity;

public interface SpUsualOutService extends IService<SpUsualOutEntity> {

    PageInfo<SpUsualOutResultDTO> pageList(Params page, SpUsualOutQueryDTO dto);

    Boolean create(SpUsualOutCreateDTO dto);

    Boolean update(SpUsualOutUpdateDTO dto);

    SpUsualOutResultDTO getById(Long id);

    /**
     * 根据流程编号查询跨市县活动
     *
     * @param batch 流程编号
     * @return SpUsualOutResultDTO
     */
    SpUsualOutResultDTO getByBatch(String batch);

    void changeAction(SpNormalPreActionUpdateDTO dto);

}